<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkItem</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GTK+ 2 Reference Manual">
<link rel="up" href="AbstractObjects.html" title="Abstract Base Classes">
<link rel="prev" href="GtkContainer.html" title="GtkContainer">
<link rel="next" href="GtkMenuShell.html" title="GtkMenuShell">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GtkContainer.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="AbstractObjects.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ 2 Reference Manual</th>
<td><a accesskey="n" href="GtkMenuShell.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#GtkItem.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#GtkItem.description" class="shortcut">Description</a>
                   | 
                  <a href="#GtkItem.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#GtkItem.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
                   | 
                  <a href="#GtkItem.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry">
<a name="GtkItem"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GtkItem.top_of_page"></a>GtkItem</span></h2>
<p>GtkItem — Abstract base class for GtkMenuItem, GtkListItem and GtkTreeItem</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="GtkItem.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gtk/gtk.h&gt;

struct              <a class="link" href="GtkItem.html#GtkItem-struct" title="struct GtkItem">GtkItem</a>;
<span class="returnvalue">void</span>                <a class="link" href="GtkItem.html#gtk-item-select" title="gtk_item_select ()">gtk_item_select</a>                     (<em class="parameter"><code><a class="link" href="GtkItem.html" title="GtkItem"><span class="type">GtkItem</span></a> *item</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkItem.html#gtk-item-deselect" title="gtk_item_deselect ()">gtk_item_deselect</a>                   (<em class="parameter"><code><a class="link" href="GtkItem.html" title="GtkItem"><span class="type">GtkItem</span></a> *item</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkItem.html#gtk-item-toggle" title="gtk_item_toggle ()">gtk_item_toggle</a>                     (<em class="parameter"><code><a class="link" href="GtkItem.html" title="GtkItem"><span class="type">GtkItem</span></a> *item</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="GtkItem.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
   +----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
         +----<a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>
               +----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
                     +----<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
                           +----<a class="link" href="GtkBin.html" title="GtkBin">GtkBin</a>
                                 +----GtkItem
                                       +----<a class="link" href="GtkMenuItem.html" title="GtkMenuItem">GtkMenuItem</a>
                                       +----<a class="link" href="GtkListItem.html" title="GtkListItem">GtkListItem</a>
                                       +----<a class="link" href="GtkTreeItem.html" title="GtkTreeItem">GtkTreeItem</a>
</pre>
</div>
<div class="refsect1">
<a name="GtkItem.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GtkItem implements
 AtkImplementorIface and  <a class="link" href="GtkBuildable.html" title="GtkBuildable">GtkBuildable</a>.</p>
</div>
<div class="refsect1">
<a name="GtkItem.signals"></a><h2>Signals</h2>
<pre class="synopsis">
  "<a class="link" href="GtkItem.html#GtkItem-deselect" title='The "deselect" signal'>deselect</a>"                                       : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a>
  "<a class="link" href="GtkItem.html#GtkItem-select" title='The "select" signal'>select</a>"                                         : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a>
  "<a class="link" href="GtkItem.html#GtkItem-toggle" title='The "toggle" signal'>toggle</a>"                                         : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a>
</pre>
</div>
<div class="refsect1">
<a name="GtkItem.description"></a><h2>Description</h2>
<p>
The <a class="link" href="GtkItem.html" title="GtkItem"><span class="type">GtkItem</span></a> widget is an abstract base class for <a class="link" href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a>, <a class="link" href="GtkListItem.html" title="GtkListItem"><span class="type">GtkListItem</span></a>
and <a class="link" href="GtkTreeItem.html" title="GtkTreeItem"><span class="type">GtkTreeItem</span></a>.
</p>
<p>
<a class="link" href="GtkItem.html" title="GtkItem"><span class="type">GtkItem</span></a> is deprecated and will be removed in GTK+ 3.
</p>
</div>
<div class="refsect1">
<a name="GtkItem.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GtkItem-struct"></a><h3>struct GtkItem</h3>
<pre class="programlisting">struct GtkItem;</pre>
<p>
The <a class="link" href="GtkItem.html#GtkItem-struct" title="struct GtkItem"><span class="type">GtkItem</span></a> struct contains private data only, and
should be accessed using the functions below.
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-item-select"></a><h3>gtk_item_select ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_item_select                     (<em class="parameter"><code><a class="link" href="GtkItem.html" title="GtkItem"><span class="type">GtkItem</span></a> *item</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_item_select</code> has been deprecated since version 2.22 and should not be used in newly-written code. Use <a class="link" href="GtkMenuItem.html#gtk-menu-item-select" title="gtk_menu_item_select ()"><code class="function">gtk_menu_item_select()</code></a> instead</p>
</div>
<p>
Emits the "select" signal on the given item.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
<td>a <a class="link" href="GtkItem.html" title="GtkItem"><span class="type">GtkItem</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-item-deselect"></a><h3>gtk_item_deselect ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_item_deselect                   (<em class="parameter"><code><a class="link" href="GtkItem.html" title="GtkItem"><span class="type">GtkItem</span></a> *item</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_item_deselect</code> has been deprecated since version 2.22 and should not be used in newly-written code. Use <a class="link" href="GtkMenuItem.html#gtk-menu-item-deselect" title="gtk_menu_item_deselect ()"><code class="function">gtk_menu_item_deselect()</code></a> instead</p>
</div>
<p>
Emits the "deselect" signal on the given item.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
<td>a <a class="link" href="GtkItem.html" title="GtkItem"><span class="type">GtkItem</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-item-toggle"></a><h3>gtk_item_toggle ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_item_toggle                     (<em class="parameter"><code><a class="link" href="GtkItem.html" title="GtkItem"><span class="type">GtkItem</span></a> *item</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_item_toggle</code> has been deprecated since version 2.22 and should not be used in newly-written code. This function will be removed in GTK+ 3</p>
</div>
<p>
Emits the "toggle" signal on the given item.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
<td>a <a class="link" href="GtkItem.html" title="GtkItem"><span class="type">GtkItem</span></a>.</td>
</tr></tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="GtkItem.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="GtkItem-deselect"></a><h3>The <code class="literal">"deselect"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkItem.html" title="GtkItem"><span class="type">GtkItem</span></a> *item,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a></pre>
<p>
Emitted when the item is deselected.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
<td>the object which received the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GtkItem-select"></a><h3>The <code class="literal">"select"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkItem.html" title="GtkItem"><span class="type">GtkItem</span></a> *item,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a></pre>
<p>
Emitted when the item is selected.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
<td>the object which received the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GtkItem-toggle"></a><h3>The <code class="literal">"toggle"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkItem.html" title="GtkItem"><span class="type">GtkItem</span></a> *item,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a></pre>
<p>
Emitted when the item is toggled.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
<td>the object which received the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>